package com.mcxx.modules.miniSalvation.order.dao.read;

import com.mcxx.modules.miniSalvation.order.dto.OrderApproveDTO;
import com.mcxx.modules.miniSalvation.order.dto.OrderDetailDTO;
import com.yinhai.ta404.module.mybatis.mapper.Ta404SupportMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface OrderDetailReadDao extends Ta404SupportMapper {

	String getDetailIdByOrderIdAndCheckType(@Param("orderId")String orderId, @Param("checkType")String checkType);


	OrderDetailDTO getDetailByOrderIdAndCheckType(@Param("orderId")String orderId, @Param("checkType")String checkType);


	OrderApproveDTO getSalvationApprove(@Param("orderId")String orderId, @Param("checkType")String checkType);

	List<OrderApproveDTO> getApproveList(@Param("orderId")String orderId, @Param("checkType")String checkType, @Param("checkResult")String checkResult);


	List<OrderApproveDTO> getRevokeList(@Param("orderId")String orderId, @Param("checkType")String checkType);

	OrderApproveDTO getSaveSalvation(@Param("orderId")String orderId, @Param("checkType")String checkType);

	String getSalvationNo(@Param("orderId")String orderId);
}
